<div class="modal-header">
  <div class="modal-title">编辑 {{ record.username }} 角色</div>
</div>
<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>

<div *ngIf="i">
  <nz-checkbox-wrapper style="width: 100%" (nzOnChange)="checkBoxChangeEvent($event)">
    <div nz-row>
      <div *ngFor="let item of i">
        <div nz-col>
          <label nz-checkbox [nzValue]="item.ID" [ngModel]="item.checked">{{ item.name }}</label>
        </div>
      </div>
    </div>
  </nz-checkbox-wrapper>
</div>

<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button type="submit" nzType="primary" (click)="save()" [nzLoading]="http.loading">保存</button>
</div>
